/*
 * Author: Michael Lewis <mikelikespie@gmail.com>
 * License: GPL v2 <http://www.opensource.org/licenses/gpl-license.php>
 */
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UITable.h>
#import <GraphicsServices/GraphicsServices.h>
#import "sqlite3.h"
#import "Message.h"
#import "Tmt.h"

@interface MessageView : UIView {
	NSMutableArray* list;
	UITable* table;
    UINavigationBar *navBar;
	UINavigationItem *navTitle;

	UIAlertSheet *optionsSheet;
	UIAlertSheet *infoSheet;
	UIAlertSheet *errorSheet;
	UIAlertSheet *deleteAllOptionSheet;

	BOOL deleting;
	NSString* path;
	sqlite3 *db;
	GSFontRef smallBoldFont;
	GSFontRef titleFont;
	CGColorSpaceRef colorSpace;

	Tmt *tmt;
	BOOL failed;
	NSUserDefaults *settings;
	

	NSDictionary *data;

	NSMutableArray *messages;
}


- (void) deleteAll: (id)notused;
- (void) refreshList;
- (void) loadConfiguration;
- (void) popupAlertSheetWithString: (NSString*)str;
@end
